package com.vcom.deploy;

import org.noear.solon.annotation.Controller;
import org.noear.solon.annotation.Mapping;
import org.noear.solon.core.handle.Context;

@Controller
public class IndexController {

    @Mapping("/")
    public void index(Context ctx) {
        ctx.forward("/index.html");
    }

    @Mapping("/upgradeCode")
    public void upgradeCode(Context ctx) {
        ctx.forward("/index.html");
    }

    @Mapping("/allLog")
    public void allLog(Context ctx) {
        ctx.forward("/allLog.html");
    }

    @Mapping("/errorLog")
    public void errorLog(Context ctx) {
        ctx.forward("/errorLog.html");
    }

    @Mapping("/appConf")
    public void appConfig(Context ctx) {
        ctx.forward("/appConf.html");
    }

    @Mapping("/script")
    public void script(Context ctx) {
        ctx.forward("/script.html");
    }

    @Mapping("/nginxConf")
    public void nginxConf(Context ctx) {
        ctx.forward("/nginxConf.html");
    }
}
